import React from "react";
import { Col, Row } from "antd";
import SchemaField from "../../core/SchemaField";
import { uniqueId } from "../../shared";


const Grid = ({ items, children }) => {
  return (
    <Row style={{ minHeight: 20 }}>
      {items.map((item) => {
        
        return (
          <Col flex={item.flex} key={item._id}>
            <SchemaField item={item} />
          </Col>
        );
      })}
      {items.length < 1 ? <Col flex={1}>拖动</Col> : null}
    </Row>
  );
};
export default Grid;
